﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace A
{
    public partial class M
    {
        public static bool IsValidNumber(object number)
        {
            try
            {
                Convert.ToInt32(number);
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
